'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  router.get('/test', controller.home.test);
  router.get('/my', controller.jspang.index);
  router.get('/getGirls', controller.jspang.getGirls);
  router.get('/getGirl', controller.jspang.getGirl);
  router.get('/getGirl2/:name', controller.jspang.getGirl2);
  router.get('/getGirl3/:name/:age', controller.jspang.getGirl3);
  router.post('/add', controller.jspang.add);
  router.get('/testGirls', controller.home.testGirls);
};
